﻿<div data-role="page" createFunc="PagesScripts.post.initHandlers()" initFunc="PagesScripts.post.loadPost()">
	<div data-role="header" data-theme="a" data-position="fixed" data-tap-toggle="false">
		<a href="#postOptions" data-rel="popup" data-position-to="window" data-theme="a" data-role="button" data-inline="true" data-transition="pop" data-iconpos="notext" data-icon="gear"></a>
		<h1 id="post_name_title"></h1>
		<a data-theme="a" data-role="button" ontouchstart="event.preventDefault();Config.SetPostsFromCache(true);PageManager.changePage('../forum_posts');" class="ui-btn-right">חזרה</a>
	</div>
	<!--div data-role="content"-->
        <div id="postContent" style="padding:2px;margin:2px 0 0 0;">
        </div>
		<div style="height:25px;"></div>
	<!--/div-->
	<div data-role="footer" data-theme="a" data-id="main-footer" data-position="fixed" data-tap-toggle="false">
		<div data-role="navbar">
			<ul>
				<li><a href="forums.html" ontouchstart="event.preventDefault();PageManager.changePage('../forums');" data-theme="a" data-icon="grid" class="ui-btn-active ui-state-persist">פורומים</a></li>
				<li><a href="bookmarks.html" ontouchstart="event.preventDefault();PageManager.changePage('../bookmarks');" data-theme="a" data-icon="star">מועדפים</a></li>
				<li><a href="splash.html" ontouchstart="event.preventDefault();PageManager.changePage('../splash');" data-theme="a" data-icon="home">תפריט ראשי</a></li>
			</ul>
		</div><!-- /navbar -->
	</div>
	<div data-role="popup" id="postOptions" data-overlay-theme="a" data-theme="c" style="max-width:400px;" class="ui-corner-all">
		<div data-role="header" data-theme="a">
			<h1>אפשרויות</h1>
		</div>
		<div data-role="content" style="min-width:250px;">
			<a data-role="button" onClick="PagesScripts.bookmarks.addBookmark()" data-rel="back" data-theme="b">הוסף למועדפים</a>       
			<a data-role="button" data-rel="back" data-theme="c">ביטול</a>    
		</div>
	</div>
	<div data-role="popup" id="postJump" data-overlay-theme="a" data-theme="c" style="max-width:400px;" class="ui-corner-all">
		<div data-role="header" data-theme="a">
			<h1>הקפצת הודעה</h1>
		</div>
		<div data-role="content" style="min-width:250px;">
			<a data-role="button" onClick="PagesScripts.post.jumpPost()" data-rel="back" data-theme="b">הקפץ הודעה</a>       
			<a data-role="button" data-rel="back" data-theme="c">ביטול</a>    
		</div>
	</div>
    <div data-role="popup" id="postEdit" data-overlay-theme="a" data-theme="c" style="max-width:400px;" class="ui-corner-all">
		<div data-role="header" data-theme="a">
			<h1>עריכת הודעה</h1>
		</div>
		<div data-role="content" style="min-width:250px;">
			<table align="center" cellpadding="2" cellspacing="0">
				<tr>
					<td colspan="2">
						<table id="postIconsContainer" cellpadding="0" cellspacing="0">
							<tr>
								<td>אייקון:</td>
								<td id="postEditIconContainer"><input data-theme="a" id="postEditIconType" style="display:none;"/></td>
							</tr>
						</table>
						כותרת:<br/>
						<input type="text" id="postEditTitle"/>
						גוף ההודעה:<br/>
						<textarea id="postEditBody" style="height:90px;max-height:90px;"></textarea>
					</td>
				</tr>
				<tr>
					<td>
						<a data-role="button" data-rel="back" data-theme="c">ביטול</a>
					</td>					
					<td>
						<a id="postEditSendButton" onClick="PagesScripts.post.sendEditedPost()" data-role="button" data-rel="back" data-theme="b">ערוך הודעה</a>
					</td>					
				</tr>
			</table>
		</div>
	</div>
	<div data-role="popup" id="postComment" data-overlay-theme="a" data-theme="c" style="max-width:400px;" class="ui-corner-all">
		<div data-role="header" data-theme="a">
			<h1>כתיבת תגובה</h1>
		</div>
		<div data-role="content" style="min-width:250px;">
			<table align="center">
				<tr>
					<td colspan="2">
						כותרת:<br/>
						<input type="text" id="postCommentTitle"/><br/>
						גוף ההודעה:<br/>
						<textarea id="postCommentBody" style="height:90px;max-height:90px;"></textarea>
					</td>
				</tr>
				<tr>
					<td>
						<a data-role="button" data-rel="back" data-theme="c">ביטול</a>
					</td>					
					<td>
						<a id="postCommentSendButton" class="ui-disabled" onClick="PagesScripts.post.sendComment()" data-role="button" data-rel="back" data-theme="b">שלח תגובה</a>
					</td>					
				</tr>
			</table>
		</div>
	</div>
</div>